﻿        
<%@ Page Title="" Language="C#" MasterPageFile="~/union/Template/_Main.Master" AutoEventWireup="true" CodeBehind="MyNotice.aspx.cs" Inherits="CL.UnionWeb.union.MyNotice" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

         <div id="RecordCount" style="display:none"><%=iCurrentListCount%></div>
        <div id="PageIndex" style="display:none"><%=iPage%></div>
        <div id="PageSize" style="display:none"><%=PageSize%></div>

        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                推广联盟系统
            </div>
            <ol class="am-breadcrumb">
                <li><a href="/union/index.aspx" class="am-icon-home">首页</a></li>
                <li><a href="#">消息中心</a></li>
            </ol>
            <div class="tpl-portlet-components">
                <%--内容 S--%>
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-3" style="float: right;">
                            <div class="am-input-group am-input-group-sm">
                                <input id="txtkey" value="<%=Keys %>" type="text" placeholder="标题或内容" class="am-form-field" />
                                <span class="am-input-group-btn">
                                    <button id="btnSearchNotice" class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="button"></button>
                                </span>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3" style="float: right;">
                            <div class="am-form-group">
                                <select id="ltIsRead" data-am-selected="{btnSize: 'sm'}">
                                    <option value="-1" <%=-1==iRead?"selected=\"selected\"":"" %> >全部公告</option>
                                    <option value="1"  <%=1==iRead?"selected=\"selected\"":"" %> >已读</option>
                                    <option value="0"  <%=0==iRead?"selected=\"selected\"":"" %> >未读</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3" style="float: left; color: #93a2a9; font-size: 12px;">
                            您当前有 <span style="color: red;"><%=UnReadCount %></span> 条未读消息
                        </div>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                          <form class="am-form" runat="server"><%--ScriptManager控件管理脚本的，注意设置EnablePageMethods="true"此属性--%>
                                 <%--<asp:ScriptManager  ID="ScriptManager1" runat="server"  EnablePageMethods="true"></asp:ScriptManager>--%>
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            <th class="table-title">标题</th>
                                            <th class="table-date am-hide-sm-only">时间</th>
                                            <th class="table-type">状态</th>
                                            <th class="table-set">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <% for (int i = 0; i < Entitys.Count; i++)
                                            {%>
                                        <tr class="<%=Convert.ToBoolean(Entitys[i].IsRead)==true?"yidu":"weidu"  %>">
                                            <td><a href="/union/NoticeDetail.aspx?noticeID=<%=CL.Tools.Common.DESEncrypt.Encrypt(Entitys[i].NoticeID.ToString()) %>" ><%=Entitys[i].NoticeTitle %></a></td>
                                            <td class="am-hide-sm-only"><%=Entitys[i].SendTime.ToString("yyyy年MM月dd日 HH时mm分") %></td>
                                            <td><%=Convert.ToBoolean(Entitys[i].IsRead)==true?"已读":"未读" %> </td>
                                            <td>
                                                <div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">                                                       
                                                        <span class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only" onclick="OnClickDeleteNotice(<%=Entitys[i].NoticeID%>)"><span class="am-icon-trash-o"></span> 删除</span>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        <% } %>
                                    </tbody>
                                </table>
                                <div class="am-cf">
                                    <div class="am-fr">
                                        <ul id="ul_pages" class="am-pagination tpl-pagination">
                                        </ul>
                                    </div>
                                </div>
                                <hr>
                            </form>
                        </div>

                    </div>
                </div>
                <%--内容 E--%>
            </div>
        </div>

    
    </asp:Content>
  